<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Extract String Tool</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="../../css/style.css" type="text/css">
</head>

<body>
<table width="100%" border="0" cellpadding="4">
  <tr>
    <td class="head" height="16">Extract String Tool</td>
  </tr>
  <tr>
    <td bgcolor="#FF9900" height="6"></td>
  </tr>
  <tr>
    <td height=6></td>
  </tr>
</table>
<p class="title">Extract String Tool</p>
<p class="text" align="left">
This tool can extract strings from current Pascal unit with certain scan and naming option, make declarations and insert into unit, and replacel strings with names. Now support Delphi and C++Builder.</p>
<p class="text" align="left">The main window shows as below:</p>
<p class="text" align="center">
<img src="extractstring.png"></p>
<ul>
  <li>
<p class="text" align="left">
<b>Prefix</b>: Set the prefix for string names.</p>
  </li>
  <li>
<p class="text" align="left">
<b>Style</b>: Set the case rule for string names, such as upper, lower, upper first letter.</p>
  </li>
  <li>
<p class="text" align="left">
<b>PinYin Rule</b>: This tool can use PinYin of Chinese Characters in strings as variable name. This options choose use full PinYin or just its first letter.</p>
  </li>
  <li>
<p class="text" align="left">
<b>Max Words</b>: This tool can use English word in strings as variable name. This option sets the maximum word count for one name.</p>
  </li>
  <li>
<p class="text" align="left">
<b>Max PinYin</b>: This tool can use PinYin of Chinese Characters in strings as variable name. This option sets the maximum Chinese character count for one name.</p>
  </li>
  <li>
<p class="text" align="left">
<b>Use UnderLine as Word Separator</b>: If checked, "_" will be used as separator in names, otherwise no separator.</p>
  </li>
  <li>
<p class="text" align="left">
<b>Ignore Single Char Strings</b>: If checked, the single char strings will be ignored when scannning.</p>
  </li>
  <li>
<p class="text" align="left">
<b>Ignore Simple Format Strings</b>: If checked, the simple format strings such as "%d" will be ignored when scannning.</p>
  </li>
  <li>
<p class="text" align="left">
<b>Show Preview</b>: Check to show the code preview window at the bottom.</p>
  </li>
  <li>
<p class="text" align="left">
<b>Scan</b>: Press this button to scan current source and extract strings to declarations according to scan and name options, and list the results in the list for renaming and replacement.</p>
  </li>
  <li>
<p class="text" align="left">
<b>Make Type</b>: Choose the extracted string declarations type, such as var, const or resourcestring for Pascal and AnsiString, char * for C/C++.</p>
  </li>
  <li>
<p class="text" align="left">
<b>To Area</b>: Choose to put extracted string declarations to interface or implementation in Pascal.</p>
  </li>
  <li>
<p class="text" align="left">
<b>Copy</b>: Copy extracted string declarations to clipboard. Do not modify source.</p>
  </li>
  <li>
<p class="text" align="left">
<b>Replace</b>: Insert extracted string declarations to the source, and replace strings with corresponding names.</p>
  </li>
  <li>
<p class="text" align="left">
<b>Close</b>: Close this window.</p>
  </li>
  <li>
<p class="text" align="left">
<b>Help</b>: Show this Help.</p>
  </li>
</ul>
<p class="text" align="left">
&nbsp;</p>
<p class="title" align="left">Links<p class="text" align="left">
<a href="../../options/wizconfig.htm">CnWizards Settings</a><p class="text" align="left">
<a href="wizeditors.htm">Coding Toolset Settings</a><p class="text" align="left">
<a href="../../cnpack/index.htm">About CnWizards</a><p class="text" align="left"><hr>
<p class="text" align="center"><a href="https://www.cnpack.org">Copyrights 2001-2025 CnPack Team</a></p>
</body>
</html>